<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <script type="text/javascript" src="{{__PUBLIC__}}/jquery-1.8.2.min.js"></script>
	    <script type="text/javascript" src="{{__PUBLIC__}}/Admin/hdjs/hdjs.min.js"></script>
	    <link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Admin/hdjs/hdjs.css"/>
	</head>
	<body>
		<form onsubmit="return hd_submit(this,'{{U('Goods_list/edit')}}','{{U('Goods_list/index',array('gid'=>$data['goods_gid']))}}')">
			<div class="alert alert-success">编辑货品</div>
			{{foreach from="$data['combine']" key="$k" value="$v"}}
				<div class="form-group">
					<label for="exampleInputEmail1">{{$data['taname'][$k]}}</label>
					<select name="combine[]" class="form-control">
							<option value="0">顶级分类</option>
						{{foreach from="$typeData[$k]" key="$kk" value="$value"}}
							<option value="{{$kk}}" {{if value="$kk eq $v" }} selected {{endif}}>{{$value}}</option>
						{{endforeach}}
					</select>
				</div>
			{{endforeach}}
			<div class="form-group">
				<label for="exampleInputEmail1">库存</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入库存量" name="inventory" value="{{$data['inventory']}}">
			</div>
			<div class="form-group">
				<label for="exampleInputEmail1">货号</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入货号" name="art_no" value="{{$data['art_no']}}">
			</div>
			<input type="hidden" name="glid" value="{{$data['glid']}}">
			<input type="hidden" name="goods_gid" value="{{$data['goods_gid']}}">
			<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
